﻿@model Business.DbConnect.Motorbike
@{
    ViewBag.Title = "Create";
}
<h2>
    Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Nhập xe</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Plate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Plate)
            @Html.ValidationMessageFor(model => model.Plate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.MotorType)
        </div>
        <div class="editor-field">
            @Html.DropDownList("MotorType")
            @Html.ValidationMessageFor(model => model.MotorType)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}